package hottargui.domain.objectServer;

import hottargui.domain.*;
import hottargui.domain.gamma.*;
import hottargui.domain.standard.*;

public class DeckOfCardsCreatorAndUserImpl implements DeckOfCardsCreator, DeckOfCardsUser {

	private DeckOfCards _deckOfcards;
	private ShuffleStrategy _shuffleStrategy;
	
	public void createDeckOfCards(int i) {
		_shuffleStrategy = new StandardShuffleStrategyImpl();
		_deckOfcards = new GammaDeckOfCardsImpl(i,_shuffleStrategy); 
	}
	

	public DeckOfCards getDeckOfCards() {
		return _deckOfcards;
	}
	
	
	public Card takeCardFromTopOfDeck() {
		return _deckOfcards.takeCardFormTopOfDeck();
	}

	/**
	 * Tells how many cards are back in deck keept
	 * @return number of cards
	 */
	public int getNumberofCardsInDeckKeept() {
		return _deckOfcards.countCardsInDeck();
	}
	
	
	
}
